/*
 * @Author: liu.lin liu.lin@hzleaper.com
 * @Date: 2023-11-07 13:36:19
 * @LastEditors: liu.lin liu.lin@hzleaper.com
 * @LastEditTime: 2023-11-24 17:18:03
 * @FilePath: \react_ts\src\router\index.tsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import Home from "../pages/Home"
import Else from "../pages/Else"
import Webscoket from "../pages/webscoket"
import Excel from "../pages/Excel"
import NestedTable from "../pages/NeatedTable"
import Echarts from "../pages/Echarts"
import Line from "../pages/line-yeild"

const routes = [
  {
    path: "/",
    name: "开始",
    element: <Home />, // 注意，这里必须要放组件<Home /> 而不是 Home
  },
  {
    path: "/echarts",
    name: "c",
    Element: <Echarts />,
  },
  {
    path: "/line",
    name: "gg",
    Element: <Line />,
  },

  {
    path: "/else",
    name: "到了",
    element: <Else />,
  },
  {
    path: "/webscoket",
    name: "心跳检测与重连机制",
    element: <Webscoket />,
  },

  {
    path: "/excel",
    name: "excel文件的导入导出，流式，分片",
    element: <Excel />,
  },
  {
    path: "/nested_table",
    name: "嵌套表格",
    element: <NestedTable />,
  },

  // {
  //   path: "/yeild",
  //   name: "嵌套表格",
  //   element: <LineYieldAnalyse />,
  // },
  {
    path: " * ",
    name: "到了",
    element: <Else />,
  },
]

export default routes
